package com.ruoyi.core.vo;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

/**
 * @Description:
 * @Company: 北京卡拉卡尔股份技术有限公司
 * @Author: Darren Ho
 * @Date: 10/20/2020 10:42
 */
public class HeartbeatMessage implements Message<HeartbeatMessagePayload> {

    @Valid
    @NotNull(message = "心跳机制消息体 payload 不允许为null")
    private HeartbeatMessagePayload payload;

    @Override
    public HeartbeatMessagePayload getPayload() {
        return this.payload;
    }

    public void setPayload(HeartbeatMessagePayload payload) {
        this.payload = payload;
    }
}
